package io.zsy.hello.bean;

/**
 * @author zhangshuaiyin
 * @date 2022/4/20 21:44
 */
public class Emp {

    private String empName;

    private Dept dept;

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public Dept getDept() {
        return dept;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "empName='" + empName + '\'' +
                ", dept=" + dept.getDeptName() +
                '}';
    }
}
